
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Medicine Stock Management</title>

	<?php echo css_asset('bootstrap.css'); ?>
	<?php echo css_asset('bootstrap-theme.css'); ?>
	<?php echo js_asset('bootstrap.min.js'); ?>
	
	<script src="https://code.jquery.com/jquery.js"></script>

</head>

<body>
<?php echo js_asset('bootstrap.min.js'); ?>

	<div id="header">
		<div class="half left">
			<div id="lside">
				<ul class="nav nav-pills nav-stacked">
					<li height="50"><a href="<?php echo base_url();?>pro_ctrl">
					<b><font color="c9c9c9"><span class="glyphicon glyphicon-user"></span>&nbsp;
					<?php $session_data = $this->session->userdata('logged_in');?>
					<?php echo $session_data['username']; ?></font>
					<span class="navbar-right"><font color="#1ce335">Online&nbsp;
					<span class="glyphicon glyphicon-map-marker"></span></font></span></b></a></li>
					<li class="divider"></li>
				</ul>
			</div>
		</div>

		<div class="half right">
			<nav class="navbar navbar-inverse" role="navigation">
				<!-- Brand and toggle get grouped for better mobile display -->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span> <span
							class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
					<a class="navbar-brand">Medicine Stock Management</a>
				</div>

				<!-- Collect the nav links, forms, and other content for toggling -->
				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">

					</ul>
					<!-- <form class="navbar-form navbar-left" role="search">
						<div class="form-group">
							<input type="text" class="form-control" placeholder="Search">
						</div>
						<button type="submit" class="btn btn-default">Submit</button>
					</form> -->
					<ul class="nav navbar-nav navbar-right">
						<li class="dropdown"><a href="#"
							class="dropdown-toggle glyphicon glyphicon-list"
							data-toggle="dropdown"> <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a href="<?php echo base_url();?>sale_ctrl">Sale Page</a></li>
								<li><a href="<?php echo base_url();?>pro_ctrl">Profile</a></li>
								<li class="divider"></li>
								<li><a href="<?php echo base_url();?>login_control/logout">Logout</a></li>
							</ul></li>
					</ul>
				</div>
				<!-- /.navbar-collapse -->
			</nav>
		</div>
	</div>

	<div id="under_header">
		<div class="half left">
			<div id="lside">
				<div class="list-group" align="center">
					<a class="list-group-item active"><b> Admin Site </b></a>
				</div>
			</div>
		</div>
		<div class="half right">
			<ol class="breadcrumb">
				<li>&nbsp;</li>
				<li><b>Expiration</b></li>
			</ol>
		</div>
	</div>

	<div id="content">
		<div class="half left">
			<div id="lside">
				<ul class="nav nav-pills nav-stacked">
					<li class="divider"></li>
					<li><a href="<?php echo base_url();?>inv_ctrl"><span
							class="glyphicon glyphicon-home">&nbsp;&nbsp;</span><b>Home</b></a></li>
					<li><a href="<?php echo base_url();?>inv_ctrl/inventory"><span
							class="glyphicon glyphicon-stats">&nbsp;&nbsp;</span><b>Inventory</b></a></li>
					<li><a href="<?php echo base_url();?>sol_ctrl"><span
							class="glyphicon glyphicon-barcode">&nbsp;&nbsp;</span><b>Sold List</b></a></li>
					<li><a href="<?php echo base_url();?>pur_ctrl"><span
							class="glyphicon glyphicon-shopping-cart">&nbsp;&nbsp;</span><b>Purchasing</b></a></li>
					<li class="active"><a href="<?php echo base_url();?>exp_ctrl"><span
							class="glyphicon glyphicon-time">&nbsp;&nbsp;</span><b>Expiration Check</b></a></li>
					<li><a href="<?php echo base_url();?>acc_ctrl"><span
							class="glyphicon glyphicon-user">&nbsp;&nbsp;</span><b>Account</b></a></li>
				</ul>
			</div>
		</div>

		<div class="half right">
			
			<feldset>

			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title">Expire Detail</h3>
				</div>
				
				<div class="panel panel-info"> <!-- Default panel contents -->
						<div class="panel-heading">
							<span class="glyphicon glyphicon-calendar"></span> Check list
						</div>
				
						<div class="panel-body">						
				
						<table class="table table-hover" width="100%">
							<thead>
								<td align="center"><b>#</b></td>
								<td align="center"><b>Drug</b></td>
								<td align="center"><b>Type</b></td>
								<td align="center"><b>Amount</b></td>
								<td align="center"><b>Date Expire</b></td>
								<td align="center"><b>Rest period</b></td>
								<td align="center"><b>Customize</b></td>
							</thead>
							<tbody>
							
							<?php for($i=0;$i<count($result);$i++){ ?>
							
							
								<tr>
									<td align="center"> <?php echo $i+1;?></td>
									<td align="center"> <?php echo $result[$i]['mdc_name'];?></td>
									<td align="center"> <?php echo $result[$i]['mdc_type'];?></td>
									<td align="center"> <?php echo $result[$i]['mdc_amount'];?></td>
									<td align="center"> <?php echo $result[$i]['mdc_expire'];?></td>
									<td align="center"> rest period</td>
									<td align="center"><a href="<?php echo base_url();?>inv_ctrl/delete/<?php echo $result[$i]['mdc_id'];?>">
									<span class="glyphicon glyphicon-trash"></span></a></td>
								</tr>
							<?php }  ?>

						</tbody>
					</table>
				</div>
			</div>
		
		</div>

	<div class="footer">
		
		<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
			<ul class="nav nav-tabs navbar-right">
				<li><a>Alert</a></li>
			</ul>
			<ul class="nav nav-tabs navber-left">
			
				<li><b><p class="navbar-text">Search&nbsp;&nbsp;<span class="glyphicon glyphicon-search"></span></p></b></li>
				
				<form class="navbar-form navbar-left" role="search" name="search" id="search" action=" ">
        			<div class="form-group">
          				<input type="text" class="form-control" placeholder="Search">
        			</div>
        		<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-send"></span></button>
      			</form>
				
			</ul>
		</nav>
		
	</div>
	</feldset>
	<br />
</body>

</html>